package com.myspring.integration.schedule.quartz;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * type1与type2表示quartz集成spring的两种执行方式：
 * 1、type1的job直接集成spring包中的QuartzJobBean
 * 2、type2的job在配置文件中配置MethodInvokingJobDetailFactoryBean
 */
public class QuartzTest {
	
	public static void main(String[] args)
	{
		QuartzTest t = new QuartzTest();
		t.testQuartzJob();
	}
	
	public void testQuartzJob() {
		ApplicationContext context = new ClassPathXmlApplicationContext("com/myspring/integration/schedule/quartz/quartzTask.xml");
	}
}
